﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VukhoasAdmin/admin.Master" AutoEventWireup="true" CodeBehind="NewProduct.aspx.cs" Inherits="vukhoas.VukhoasAdmin.NewProduct" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>Tạo mới sản phẩm</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <div>
        <div class="new_left">
            <label>Tên sản phẩm</label>
        </div>
        <div class="new_right">    
            <asp:TextBox ID="name" runat="server"></asp:TextBox>    
        </div>
    
    
    </div>
        <div class="new_left">
            <label>Giá</label>
        </div>
        <div class="new_right">    
            <asp:TextBox ID="price" runat="server"></asp:TextBox>    
        </div>

        <div class="new_left">
            <label>Loại sản phẩm</label>
        </div>
        <div class="new_right">    
            &nbsp;<asp:DropDownList 
                ID="cate" runat="server"  AutoPostBack="True"
                DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="id" 
                Height="18px" Width="250px" 
                onselectedindexchanged="cate_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:vukhoas_dbConnectionString %>" 
                SelectCommand="SELECT * FROM [category]"></asp:SqlDataSource>
        </div>

        <div class="new_left">
            <label>Nhà sản xuất</label>
        </div>
        <div class="new_right">    
            &nbsp;<asp:DropDownList ID="manu" runat="server"
                DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="id" 
                Height="20px" Width="250px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:vukhoas_dbConnectionString %>" 
                SelectCommand="SELECT * FROM [manufacture]"></asp:SqlDataSource>
        </div>

        <div class="new_left">
            <label>Thông tin chi tiết</label>
        </div>
        <div class="new_right">    
            <CKEditor:CKEditorControl ID="detail" runat="server" Width="1020" Height="500"
            ></CKEditor:CKEditorControl>
        </div>

        <div class="new_left">
            <label>Giới thiệu</label>
        </div>
        <div class="new_right">    
            <CKEditor:CKEditorControl ID="intro" runat="server" Width="1020" Height="200"
            ></CKEditor:CKEditorControl>
        </div>

        <div class="new_left">
            <label>Thông tin</label>
        </div>
        <div class="new_right">    
            <asp:TextBox ID="info" runat="server"></asp:TextBox>    
        </div>

        <div class="new_left">
            <label>Ảnh đại diện</label>
        </div>
        <div class="new_right">    
            <asp:TextBox ID="img" runat="server"></asp:TextBox>    
        </div>


        <hr />
        <div class="new_right">
        
            <asp:Button ID="ok" runat="server" Text="Tạo mới" Width="152px" 
                onclick="ok_Click" />
            
            <asp:Button ID="reset" runat="server" Text="Làm lại" Width="152px" 
                onclick="reset_Click" />
        
        </div>
    </form>
</asp:Content>
